<?php

/**
 * @author: chabonxu
 * @createTime: 2022/08/03 16:41
 * @company: https://www.moonton.com
 * @description: cdkey excel model
 */
require_once 'Table.php';
class CDKeyModel extends Table
{
    public function __construct() {
        $sheets = $this->addSheet("CDkey");
        $sheets->addField("cdkey_id", Sheet::TYPE_INT, "ID");
        $sheets->addField("cdkey_name", Sheet::TYPE_STRING, "名称");
        $sheets->addField("cdkey_num", Sheet::TYPE_INT, "总数量");
        $sheets->addField("cdkey_alitas_name", Sheet::TYPE_STRING, "CDKey自定义口令名称");
        $sheets->addField("cdkey_type", Sheet::TYPE_INT, "兑换码类型");
        $sheets->addField("create_mode", Sheet::TYPE_INT, "生成方式");
        $sheets->addField("delivery_mode", Sheet::TYPE_INT, "发货方式");
        $sheets->addField("exchange_mode", Sheet::TYPE_INT, "兑换方式");
        $sheets->addField("max_share_num", Sheet::TYPE_INT, "单个码兑换次数");
        $sheets->addField("exchange_limit", Sheet::TYPE_INT, "总账号数量限制");
        $sheets->addField("daily_exchange_limit", Sheet::TYPE_INT, "总账号每日数量限制");
        $sheets->addField("role_exchange_limit", Sheet::TYPE_INT, "账号数量限制");
        $sheets->addField("role_daily_exchange_limit", Sheet::TYPE_INT, "账号每日数量限制");
        $sheets->addField("role_registry_limit", Sheet::TYPE_INT, "新角色注册天数限制");
        $sheets->addField("role_level_lower", Sheet::TYPE_INT, "必须大于配置等级才可以领");
        $sheets->addField("role_level_upper", Sheet::TYPE_INT, "必须小于配置等级才可以领");
        $sheets->addField("charge_limit", Sheet::TYPE_INT, "付费限制,累计付费获得钻石教大于配置值才能领");
        $sheets->addField("platform_limit", Sheet::TYPE_STRING, "渠道限制");
        $sheets->addField("zone_limit", Sheet::TYPE_STRING, "分区限制");
        $sheets->addField("reward_info", Sheet::TYPE_STRING, "奖励");
        $sheets->addField("begin_time", Sheet::TYPE_STRING, "开始时间");
        $sheets->addField("end_time", Sheet::TYPE_STRING, "结束时间");
        $sheets->addField("mail_title", Sheet::TYPE_STRING, "邮件标题");
        $sheets->addField("mail_content", Sheet::TYPE_STRING, "邮件正文");
        $sheets->addField("cdkey_price", Sheet::TYPE_INT, "兑换码价值（美分）");
        $sheets->addField("cdkey_point", Sheet::TYPE_INT, "兑换码返点");
        $sheets->addField("cdkey_channel", Sheet::TYPE_INT, "兑换码渠道");
//        $sheets->addField("generated_num", Sheet::TYPE_INT, "名称");
//        $sheets->addField("exchanged_num", Sheet::TYPE_INT, "名称");
//        $sheets->addField("change_cdkey_num", Sheet::TYPE_INT, "名称");
    }

}